import { ApiBaseModel } from "./ApiBaseModel";

/**
 * 接口数据
 */
export class ApiResponse extends ApiBaseModel {
  code?: any;
  message?: any;
  data?: any;

  constructor(code: any, message: any, data: any) {
    super();
    this.code = code;
    this.message = message;
    this.data = data;
  }


  // 可选：添加一个方法来检查是否请求成功
  isSuccess(): boolean {
    return this.code == 0;
  }

}
